
pip3 install schedule requests

main_pid=`ps -ef | grep 'worktip.py' | grep -v grep | awk '{ print $2}'`
# echo需要双引号，而kill -9 指令不需要
echo "find pid: $main_pid"
kill -9 $main_pid
sleep 2
echo "worktip.py server killed"

python3 worktip.py &
echo "worktop.py running"
exit